package com.itheima.service;

import com.itheima.common.CommonResult;
import com.itheima.pojo.User;
import com.itheima.pojo.UserInfo;
import com.itheima.vo.RecommendationVo;
import com.itheima.vo.UserVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 王同学
 */
@Transactional(rollbackFor = RuntimeException.class)
public interface UserService {
    UserVO login(User user);

    boolean sendMsg(String phone);

    boolean inof(UserInfo userInfo);

    CommonResult getRecommendationList(double longitude, double latitude, Integer page, Integer pageSize);

    boolean updateByPhone(String phone);

    boolean updateUserById(User user);
}
